package com.hxzy.mapper;

import com.hxzy.controller.admin.merchandiser.req.MerchandiserSearchReq;
import com.hxzy.controller.admin.upload.req.ImagePrivateReq;
import com.hxzy.controller.anonymous.merchandiser.req.AnonyMerchandiserInfoReq;
import com.hxzy.controller.anonymous.merchandiser.req.AnonyMerchandiserSearchReq;
import com.hxzy.controller.anonymous.merchandiser.resp.AnonyMerchandiserResp;
import com.hxzy.entity.Merchandiser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【merchandiser(商家信息)】的数据库操作Mapper
* @createDate 2024-02-21 11:30:41
* @Entity com.hxzy.entity.Merchandiser
*/
public interface MerchandiserMapper extends BaseMapper<Merchandiser> {

    /**
     * 查询
     * @param req
     * @return
     */
    List<Merchandiser> search(@Param(value = "req") MerchandiserSearchReq req);

    /**
     * 根据请求参数，查询数据库图片的路径
     * @param req
     * @return
     */
    String searchImageKey(@Param(value = "req") ImagePrivateReq req);

    /**
     * 获取距离我8公里之内的商家
     * @param req
     * @return
     */
    List<AnonyMerchandiserResp> anonySearch(@Param(value = "req") AnonyMerchandiserSearchReq req);

    /**
     * 查询商家信息
     * @param req
     * @return
     */
    AnonyMerchandiserResp anonyFindByInfo(@Param(value = "req") AnonyMerchandiserInfoReq req);
}




